<?php

use common\models\Post;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\ActionColumn;
use yii\grid\GridView;
use yii\widgets\ListView;
use frontend\components\TagsCloudWidget;

/** @var yii\web\View $this */
/** @var common\models\PostSearch $searchModel */
/** @var yii\data\ActiveDataProvider $dataProvider */
?>

<div class="container">

    <div class="row">
        <div class="col-md-9">
        <?php
            $this->params['breadcrumbs'][] = '全国大学英语六级考试';
        ?>
        
        <?= ListView::widget([
                'id'=>'postList',
                'dataProvider'=>$dataProvider,
                'itemView'=>'_listitem',//子视图
                'layout'=>'{items} {pager}',
                'pager'=>[
                        'maxButtonCount'=>10,
                        'nextPageLabel'=>Yii::t('app','下一页'),
                        'prevPageLabel'=>Yii::t('app','上一页'),
        ],
        ])?>
        
        </div>

        <div class="col-md-3">
            <div class="searchbox">
                <ul class="list-group">
                  <li class="list-group-item">
                  <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查找公告
                  </li>
                  <li class="list-group-item">                
                      <form class="form-inline" action="index.php?r=post/index" id="w0" method="get">
                          <div class="form-group">
                            <input type="text" class="form-control" name="PostSearch[title]" id="w0input" placeholder="按标题">
                          </div>
                          <button type="submit" class="btn btn-default">搜索</button>
                    </form>
                  
                  </li>
                </ul>           
            </div>

            <div class="tagcloudbox">
                <ul class="list-group">
                  <li class="list-group-item">
                  <span class="glyphicon glyphicon-tags" aria-hidden="true"></span> 公告一览
                  </li>
                  <li class="list-group-item">
                  <?= TagsCloudWidget::widget(['tags'=>$tags])?></li>
                </ul>           
            </div>




        </div>

    </div>

</div>
